package com.qifan.energy.bean.result;

import java.util.List;

public class GameSocketLoginResult {

    /**
     * state : //over,ready,start,game(0~4)//两人进入房间后开始准备阶段1；两人准备后进入开始阶段2；都同意开始后进入押注阶段3；押注完成时进入结算阶段4；结算完成0；
     * roomid : 906109
     * conf : {"lock":false,"creator":16,"pers":4,"type":"RPS"}
     * creator : 16
     * numofgames : 5
     * seats : [{"userid":16,"ip":"::ffff:125.45.158.5","coins":100,"times":120,"sex":"1","nickname":"我是1","online":true,"start":false,"ready":false,"seatindex":0},{"userid":0,"sex":0,"online":false,"start":false,"ready":false,"seatindex":1},{"userid":0,"sex":0,"online":false,"start":false,"ready":false,"seatindex":2},{"userid":0,"sex":0,"online":false,"start":false,"ready":false,"seatindex":3}]
     */

    private int state;
    private String roomid;
    private ConfBean conf;
    private int creator;
    private int numofgames;
    private List<SeatsBean> seats;

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getRoomid() {
        return roomid;
    }

    public void setRoomid(String roomid) {
        this.roomid = roomid;
    }

    public ConfBean getConf() {
        return conf;
    }

    public void setConf(ConfBean conf) {
        this.conf = conf;
    }

    public int getCreator() {
        return creator;
    }

    public void setCreator(int creator) {
        this.creator = creator;
    }

    public int getNumofgames() {
        return numofgames;
    }

    public void setNumofgames(int numofgames) {
        this.numofgames = numofgames;
    }

    public List<SeatsBean> getSeats() {
        return seats;
    }

    public void setSeats(List<SeatsBean> seats) {
        this.seats = seats;
    }

    public static class ConfBean {
        /**
         * lock : false
         * creator : 16
         * pers : 4
         * type : RPS
         */

        private boolean lock;
        private int creator;
        private int pers;
        private String type;

        public boolean isLock() {
            return lock;
        }

        public void setLock(boolean lock) {
            this.lock = lock;
        }

        public int getCreator() {
            return creator;
        }

        public void setCreator(int creator) {
            this.creator = creator;
        }

        public int getPers() {
            return pers;
        }

        public void setPers(int pers) {
            this.pers = pers;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }

    public static class SeatsBean {
        /**
         * userid : 16
         * ip : ::ffff:125.45.158.5
         * coins : 100
         * times : 120
         * sex : 1
         * nickname : 我是1
         * roundIntegration : 局数
         * online : true
         * start : false
         * ready : false
         * seatindex : 0
         */

        private int userid;
        private String ip;
        private int coins;
        private int times;
        private String sex;
        private String nickname;
        private long roundIntegration;
        private boolean online;
        private boolean start;
        private boolean ready;
        private int seatindex;

        public int getUserid() {
            return userid;
        }

        public void setUserid(int userid) {
            this.userid = userid;
        }

        public String getIp() {
            return ip;
        }

        public void setIp(String ip) {
            this.ip = ip;
        }

        public int getCoins() {
            return coins;
        }

        public void setCoins(int coins) {
            this.coins = coins;
        }

        public int getTimes() {
            return times;
        }

        public void setTimes(int times) {
            this.times = times;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public long getRoundIntegration() {
            return roundIntegration;
        }

        public void setRoundIntegration(long roundIntegration) {
            this.roundIntegration = roundIntegration;
        }

        public boolean isOnline() {
            return online;
        }

        public void setOnline(boolean online) {
            this.online = online;
        }

        public boolean isStart() {
            return start;
        }

        public void setStart(boolean start) {
            this.start = start;
        }

        public boolean isReady() {
            return ready;
        }

        public void setReady(boolean ready) {
            this.ready = ready;
        }

        public int getSeatindex() {
            return seatindex;
        }

        public void setSeatindex(int seatindex) {
            this.seatindex = seatindex;
        }
    }
}
